package Scanner;

public class ScanResults {
    private String scanCategory;//Category for what was scanned
    private int scanItemNum;//index number for what was scanned
    private String scanTable;//String to store name of appropriate scan table.
    
    public void parseScan(String scanString){
        String number = scanString.replaceAll("[^0-9]", "");
        String category = scanString.replaceAll("[^A-Z]", "");
        this.scanItemNum = Integer.parseInt(number);
        this.scanCategory = category;   
        this.scanTable = "ScanTbl" + category;
    }
    
    public String getCategory(){
        return this.scanCategory;
    }
    
    public int getItemNum(){
        return this.scanItemNum;
    }
    
    public String getTable(){
        return this.scanTable;
    }
}
